{include file = 'f-header.tpl'}
<div class="main">
	<div class="s_left">
				<img src="{$baseUrl}/public/images/logo_s.png" />
				<img style="margin-left:-5px;" src="{$baseUrl}/public/images/s1.png" />
				<form>
					<select>
						<option value="">Categoria</option>
						<option value="">Categoria</option>
						<option value="">Categoria</option>
					</select>
					<select>
						<option value="">Categoria</option>
						<option value="">Categoria</option>
						<option value="">Categoria</option>
					</select>
					<select>
						<option value="">Categoria</option>
						<option value="">Categoria</option>
						<option value="">Categoria</option>
					</select>
					<input class="kw" name="" value="keyword..." />
					<a href="#" class="search"><img src="{$baseUrl}/public/images/search.png" /></a>
				</form>
				<a href="#"><img style="padding:8px;" src="{$baseUrl}/public/images/6.jpg" /></a>
			</div>
            <div class="s_right">
            <div class="white_back">
                <h3>发布店铺信息</h3>
                <hr>
                <form name="form1" id="form1" action="{$baseUrl}info/addInfo" method="post" autocomplete="off">
                    <input type="hidden" name="id" value="{$id}" />
                    <table class="addInfo">
                        <tr>
                            <td>店铺名称</td>
                            <td>
                                <input type="text" name="name" value="{$name}" />
                                <span class="gray">* 您店铺的名称</span>
                            </td>
                        </tr>
                        <tr>
                            <td>店铺类别</td> 
                            <td><select name="class">
                                    {html_options options=$class_options selected=$class_id}
                                </select>
                                <span class="gray">* 您店铺的类型</span>
                            </td>
                        </tr>
                        <tr>
                            <td>城市:</td>
                            <td><input type="text" name="city" value="{$city}"/><span class="gray">* 您店铺的所在的城市</span></td>
                        </tr>
                            <td>
                               区域：
                            </td>
                            <td>
                               <input type="text" name="area" value="{$area}" /><span class="gray">* 你店铺所在的区域</span></td>
                            </td>
                        </tr>
                        <tr>
                            <td>地址:</td>
                            <td>
                                <input type="text" name="address" value="{$addres}"/>
                                <span class="gray">* 您店铺的实际地址</span>
                            </td>
                        </tr>
                        <tr>
                            <td>电话:</td>
                            <td>
                                <input type="text" name="tel" value="{$tel}"/>
                                <span class="gray">* 您店铺的电话</span>
                            </td>
                        </tr>
                        <tr>
                            <td>邮编:</td>
                            <td>
                                <input type="text" name="cap" value="{$cap}"/>
                                <span class="gray">* 您的邮编</span>
                            </td>
                        </tr>
                        <tr>
                            <td>营业时间:</td>
                            <td>
                                <input type="text" name="openTime" value="{$openTime}"/>
                                <span class="gray">* 您店铺的营业时间</span>
                            </td>
                        </tr>
                        <tr>
                            <td>店铺描述:</td>
                            <td>
                                <textarea  name="detail" style="width:200px;height:100px;">{$detail}</textarea>
                                <span class="gray">* 50个字以上的店铺描述</span>
                            </td>
                        </tr>
                        <tr>
                            <td>收费方式:</td>
                            <td>
                                <textarea  name="price" style="width:200px;height:100px;">{$price}</textarea>
                                <span class="gray">* 店铺的收费方式</span>
                            </td>
                        </tr>
                        <tr><td>google地址:<input type="hidden" id="google" name="google_address"  value="123,456"/></td>
                            <td><span class="gray">* 拖动下面地图的红色气球，设置你店铺的位置</span></td>
                        </tr>
                        <tr>
                            <td colspan=2><div id='in_map_canvas'></div></td>
                        </tr>
                        <tr>
                            <td>店铺LOGO图:</td>
                            <td>
                                <input type="hidden" name="ico" id="ico"  value="{$ico}">
                                <span style="color:red;" id="ico_tip">未上传logo</span>
                                <span class="gray">* 在下面单位文件框中上传图片。上传后拖动高亮框，双击裁剪图片</span>
                            </td>
                        </tr>
                        <tr>
                            <td>店铺宣传图:

                            </td>
                            <td>
                                <input type="hidden" name="pic" id="pic"  value="{$pic}" >
                                <span style="color:red;" id="pic_tip">未上传宣传图</span>
                                <span class="gray">* 图片操作同上</span>
                            </td>
                        </tr>
                    </table>
                </form>
                <hr>
                <p>上传商店ico图片</p>
                <form action="{$baseUrl}photo/upPic?callback=ico&scaleX=70" enctype="multipart/form-data" method="post" target='pic' >
                <input  name='file[]' type='file'></input>
                <input type='submit' value='上传' />
                </form>
                <div id='ico_pic'>
                    <img src="{$ico}" />
                </div>
                <hr>
                <p>上传商店宣传图片</p>
                <form action="{$baseUrl}photo/upPic?callback=pic&scaleX=200" enctype="multipart/form-data" method="post" target='pic' >
                    <input  name='file[]' type='file'></input>
                    <input type='submit' value='上传' />
                </form>
                <div id='ad_pic'>
                <img src="{$pic}" />
                </div>

        <iframe name='pic' style='display:none;'> </iframe>
        <input id="save" type="button" style="margin:10px;width:100px;height:30px;" value="保存"></input>
        <input id="baseUrl" name="baseUrl" type="hidden" value="{$baseUrl}" />

        </div>

    </div>

</div>


<div class="clear"></div>
{literal}
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>

var map;
var marker = new google.maps.Marker();
    initialize();
var start=new google.maps.LatLng(45.476985,9.18663);

    marker.setDraggable(true) 
    marker.setPosition(start);
    marker.setMap(map);

function initialize() {
    var latlng = new google.maps.LatLng(45.476985,9.18663);
    var myOptions = {
      zoom: 14,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById("in_map_canvas"), myOptions);

    google.maps.event.addListener(marker, 'dragend', function(event) {
            var p=marker.getPosition();
            google=document.getElementById("google");
            google.setAttribute("value",p.Qa+","+p.Ra);
    });
}

</script>
{/literal}
{include file = 'f-footer.tpl'}


